home *** CD-ROM | disk | FTP | other *** search
- on LanceScroll Parametres
- global CastEfface
- set SpriteCast1 to getAt(Parametres, 1)
- set SpriteCast2 to SpriteCast1 + 1
- set Xref to the locH of sprite getAt(Parametres, 7)
- set Yref to the locV of sprite getAt(Parametres, 7)
- if getAt(Parametres, 2) = #auto then
- set NumCast1 to the castNum of sprite SpriteCast1
- else
- set NumCast1 to the number of cast getAt(Parametres, 2)
- end if
- set NumCast2 to the number of cast getAt(Parametres, 3)
- set AccuA to getAt(Parametres, 4)
- if AccuA = "Bas" then
- set SignOp to -1
- set AccuS to 1
- else
- if AccuA = "Haut" then
- set SignOp to 1
- set AccuS to 1
- else
- if AccuA = "Droite" then
- set SignOp to -1
- set AccuS to 0
- else
- set SignOp to 1
- set AccuS to 0
- end if
- end if
- end if
- preLoadCast(NumCast2)
- puppetSprite(SpriteCast1, 1)
- puppetSprite(SpriteCast2, 1)
- set the castNum of sprite SpriteCast1 to NumCast1
- set the castNum of sprite SpriteCast2 to NumCast2
- set Dec to 0
- if AccuS = 0 then
- set Taille to (Xref - the locH of sprite (getAt(Parametres, 7) + 1)) * 2
- set DecSprite2 to Taille * -SignOp
- set PasScroll to Taille / (100 / getAt(Parametres, 5)) * SignOp
- set the locV of sprite SpriteCast1 to Yref
- set the locV of sprite SpriteCast2 to Yref
- repeat while abs(Dec) < Taille
- set the locH of sprite SpriteCast1 to Xref + Dec
- set the locH of sprite SpriteCast2 to Xref + DecSprite2 + Dec
- set Dec to Dec + PasScroll
- Interrupt0()
- updateStage()
- end repeat
- else
- set Taille to (Yref - the locV of sprite (getAt(Parametres, 7) + 1)) * 2
- set DecSprite2 to Taille * -SignOp
- set PasScroll to Taille / (100 / getAt(Parametres, 5)) * SignOp
- set the locH of sprite SpriteCast1 to Xref
- set the locH of sprite SpriteCast2 to Xref
- repeat while abs(Dec) < Taille
- set the locV of sprite SpriteCast1 to Yref + Dec
- set the locV of sprite SpriteCast2 to Yref + DecSprite2 + Dec
- set Dec to Dec + PasScroll
- Interrupt0()
- updateStage()
- end repeat
- end if
- set the locH of sprite SpriteCast1 to Xref
- set the locV of sprite SpriteCast1 to Yref
- set the castNum of sprite SpriteCast1 to NumCast2
- set the castNum of sprite SpriteCast2 to CastEfface
- updateStage()
- unLoadCast(NumCast1)
- puppetSprite(SpriteCast2, 0)
- do(getAt(Parametres, 6))
- end
-